-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/simple structs #53
Conversation
was not used in the attestation record
import { ResolverUID } from "../src/DataTypes.sol"; | ||
import { console2 } from "forge-std/console2.sol"; | ||
import "./Create2Factory.sol"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont think this is needed right? We could just deploy using new Registry{salt: salt}()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is that actually using 0age's factory tho? so we can use existing rust + openCL tooling to compute salts for vanity addresses?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, yeah this is using Nicks factory afaik so good point
function run() public { | ||
bytes32 salt = bytes32(uint256(2)); | ||
bytes32 salt = 0x05a40beaf368eb6b2bc5665901a885c044c19346fc828ba80a35fe4cc30d0000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did u already mine this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep. just a few zeros to test that its working with the tooling we will want to use
} | ||
return size > 0; | ||
function _isContract(address addr) view returns (bool) { | ||
return addr.code.length > 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could use assembly here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually moved it from assembly to solidity for better readability
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, imo bc this is super simple assembly would be fine but up to you
Co-authored-by: Konrad <[email protected]>
Welcome to Codecov 🎉Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment. Thanks for integrating Codecov - We've got you covered ☂️ |
fic: more coverage
9d97822
to
406e8f4
Compare
Simplifying registry